/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package models;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

/**
 *
 * @author Eduardo
 */
@Embeddable
public class ConfiguracionxperfilPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "IdPerfil")
    private int idPerfil;
    @Basic(optional = false)
    @NotNull
    @Column(name = "IdDetalleConf")
    private int idDetalleConf;

    public ConfiguracionxperfilPK() {
    }

    public ConfiguracionxperfilPK(int idPerfil, int idDetalleConf) {
        this.idPerfil = idPerfil;
        this.idDetalleConf = idDetalleConf;
    }

    public int getIdPerfil() {
        return idPerfil;
    }

    public void setIdPerfil(int idPerfil) {
        this.idPerfil = idPerfil;
    }

    public int getIdDetalleConf() {
        return idDetalleConf;
    }

    public void setIdDetalleConf(int idDetalleConf) {
        this.idDetalleConf = idDetalleConf;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) idPerfil;
        hash += (int) idDetalleConf;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ConfiguracionxperfilPK)) {
            return false;
        }
        ConfiguracionxperfilPK other = (ConfiguracionxperfilPK) object;
        if (this.idPerfil != other.idPerfil) {
            return false;
        }
        if (this.idDetalleConf != other.idDetalleConf) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "models.ConfiguracionxperfilPK[ idPerfil=" + idPerfil + ", idDetalleConf=" + idDetalleConf + " ]";
    }
    
}
